import request from '@/utils/request'


// 获取今日搜索热词
export function getSearchHotTopToday(query) {
  return request({
    url: '/library/searchhotword/getSearchHotTopToday',
    method: 'get',
    params: query
  })
}

// 获取今日使用情况
export function getNowUserNum() {
  return request({
    url: '/library/searchhotword/nowUserNum',
    method: 'get'
  })
}

// 获取总使用情况
export function getAllUserNum() {
  return request({
    url: '/library/searchhotword/allUserNum',
    method: 'get'
  })
}

//获取报条目数
export function getBaoNum() {
  return request({
    url: '/library/gcbbaoMetadata/getBaoCount',
    method: 'get'
  })
}

//获取期刊条目数
export function getQkNum() {
  return request({
    url: '/library/gcbxxzyqkMetadata/getQkCount',
    method: 'get'
  })
}

//获取外刊条目数
export function getEngineerenNum() {
  return request({
    url: '/library/engineerenMetadata/getEngineerenCount',
    method: 'get'
  })
}

//获取图书条目数
export function getTsNum() {
  return request({
    url: '/library/gcbxxzytsMetadata/getTsCount',
    method: 'get'
  })
}

//获取工兵条目数
export function getRmgbNum() {
  return request({
    url: '/library/rmgbMetadata/getRmgbCount',
    method: 'get'
  })
}

//获取标准条目数
export function getTyzbbzbzNum() {
  return request({
    url: '/library/tyzbbzbzMetadata/getTyzbbzbzCount',
    method: 'get'
  })
}

//获取所有条目数
export function getAllNum() {
  return request({
    url: '/library/information/allCount',
    method: 'get'
  })
}

//获取刊名信息数据
export function getSourceTitle() {
  return request({
    url: '/library/gcbxxzyqkMetadata/sourceTitleCount',
    method: 'get'
  })
}

//获取出版社信息数据
export function getPublisher() {
  return request({
    url: '/library/gcbxxzytsMetadata/getPublishCount',
    method: 'get'
  })
}

//获取热搜词数据
export function getHotCount(query) {
  return request({
    url: '/library/searchhotword/getSearchHotTop',
    method: 'get',
    params: query
  })
}

//下载条目数
export function getDownInfor() {
  return request({
    url: '/library/downinfor/downTitles',
    method: 'get'
  })
}
